// // 使用微信开发者工具多开小程序
const { exec } = require('child_process');
function awaitTime(ms) {
  return new Promise((resolve) => setTimeout(resolve, ms));
}
// 获取当前文件路径
const path = require('path');
// 获取当前文件所在目录的绝对路径
const dir = path.dirname(__filename);
async function run() {
  exec(`${dir}./lottery_sign_reload.exe`,async() => {
    await awaitTime(14000);
    run();
  })
  
}
run();
// const projects = [
//   'wx13cd99d542d173c1',
//   'wxd6e92aac1658a43e',
//   'wx6335953a0fca4249',
//   'wxe30a622cc9cdc70b'
// ];

// projects.forEach(project => {
//   exec(`start weixin://launchapplet?app_id=${project}`);
// });